import request from "@/request/index.js";

const auth = "auth"; //http://101.42.107.47:30019文档
const base = "base"; //http://101.42.107.47:30020文档
const zhpt = "zhpt"; //http://101.42.107.47:30018文档

//获取列表
export const getSensitiveWordListApi = (data) => {
    return request({
        url: `/api/${zhpt}/sensitive/console/search`,
        method: "post",
        data,
    });
};

//批量操作
export const sensitiveWordBatchApi = (data) => {
    return request({
        url: `/api/${zhpt}/sensitive/batch`,
        method: "post",
        data,
    });
};

// //获取详细信息
// export const sensitiveWordDetailApi = (data) => {
//     return request({
//         url: `/api/${zhpt}/sensitive/console/search/info`,
//         method: "post",
//         data,
//     });
// };

//新增
export const addSensitiveWordApi = (data) => {
    return request({
        url: `/api/${zhpt}/sensitive/add`,
        method: "post",
        data,
    });
};

//编辑
export const editSensitiveWordApi = (data) => {
    return request({
        url: `/api/${zhpt}/sensitive/edit`,
        method: "post",
        data,
    });
};